package com.caterina.components;


import java.awt.Image;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

import com.caterina.resources.CPaths;

public class CLogo extends JLabel {
	private static final long serialVersionUID = 1L;
		public CLogo(int width,int eight){
			//width=536; eight="150"
			super();
			Image i=java.awt.Toolkit.getDefaultToolkit().getImage(CPaths.ConvertUrl("graphics\\logo.png"));
			i=i.getScaledInstance(width,eight,Image.SCALE_SMOOTH);
			Icon icon = new ImageIcon(i);
			this.setIcon(icon);
		}
}
